<?php include_component('tree'
                    , 'path'
                    , array('path' => 'change password')); ?>
<br/>
<div class="text">
<h2><?php echo ucfirst(__('change password')) ?></h2><br /><br />

<?php if ($sf_request->hasErrors()): ?>
    <?php foreach ($sf_request->getErrorNames() as $name): ?>
        <span style="color:red; font-weight:bold;"><?php echo __($sf_request->getError($name)); ?></span><br/>
    <?php endforeach; ?>
<?php elseif ($sf_flash->has('notice')): ?>
<div style="color: #FF9900"><?php echo __($sf_flash->get('notice')) ?></div>
<?php endif; ?>
<?php if(!$sf_flash->has('notice')): ?>
    <?php echo form_tag('user/newpass') ?>
    <?php echo input_hidden_tag('uid', $sf_request->getParameter('uid'));?>
    <table>
        <tr>
            <td><?php echo __('password') ?></td>
            <td><?php echo input_password_tag('user[password]', $sf_params->get('user[password]'), array('class' => 'input')) ?></td>
        </tr>
        <tr>
            <td><?php echo __('repeat password') ?></td>
            <td><?php echo input_password_tag('user[repeat_password]', $sf_params->get('user[repeat_password]'), array('class' => 'input')) ?></td>
        </tr>
    </table>
    <?php echo submit_tag(__('send'), array('class' => 'submit')) ?>
    </form>
<?php endif; ?>
</div>
<div class="dashed_line">
</div>
<br/>